package kelihua

object kelihuaDemo1 {
  implicit val z = 30
  //implicit val z2 = 304

  def k1(x: Int)(implicit y: Int = 10): Int = {
    x + y
  }


  def k2(x: Int)(y: Int)(implicit z: Int = 10): Int = {
    x + y + z
  }


  def main(args: Array[String]): Unit = {
    println(k1(2)())
    println(k1(2)(4))
    println(k1(2))
    println(k2(2)(10))
  }

}
